
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for conditionsType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="conditionsType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Condition" type="{}conditionType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Precipitation" type="{}precipitationType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Pressure" type="{}pressureType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Temperature" type="{}weahterTemperatureType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="Wind" type="{}weatherWindType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="ExtendedConditions" type="{}extConditionsType" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="Humidity" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Wind_Direction" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *       &lt;attribute name="Prec_Type" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "conditionsType", propOrder = {
    "condition",
    "precipitation",
    "pressure",
    "temperature",
    "wind",
    "extendedConditions"
})
public class ConditionsType {

    @XmlElement(name = "Condition")
    protected List<ConditionType> condition;
    @XmlElement(name = "Precipitation")
    protected List<PrecipitationType> precipitation;
    @XmlElement(name = "Pressure")
    protected List<PressureType> pressure;
    @XmlElement(name = "Temperature")
    protected List<WeahterTemperatureType> temperature;
    @XmlElement(name = "Wind")
    protected List<WeatherWindType> wind;
    @XmlElement(name = "ExtendedConditions")
    protected ExtConditionsType extendedConditions;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "Humidity")
    protected String humidity;
    @XmlAttribute(name = "Wind_Direction")
    protected String windDirection;
    @XmlAttribute(name = "Prec_Type")
    protected String precType;

    /**
     * Gets the value of the condition property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the condition property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getCondition().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ConditionType }
     * 
     * 
     */
    public List<ConditionType> getCondition() {
        if (condition == null) {
            condition = new ArrayList<ConditionType>();
        }
        return this.condition;
    }

    /**
     * Gets the value of the precipitation property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the precipitation property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPrecipitation().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link PrecipitationType }
     * 
     * 
     */
    public List<PrecipitationType> getPrecipitation() {
        if (precipitation == null) {
            precipitation = new ArrayList<PrecipitationType>();
        }
        return this.precipitation;
    }

    /**
     * Gets the value of the pressure property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the pressure property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPressure().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link PressureType }
     * 
     * 
     */
    public List<PressureType> getPressure() {
        if (pressure == null) {
            pressure = new ArrayList<PressureType>();
        }
        return this.pressure;
    }

    /**
     * Gets the value of the temperature property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the temperature property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getTemperature().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeahterTemperatureType }
     * 
     * 
     */
    public List<WeahterTemperatureType> getTemperature() {
        if (temperature == null) {
            temperature = new ArrayList<WeahterTemperatureType>();
        }
        return this.temperature;
    }

    /**
     * Gets the value of the wind property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the wind property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getWind().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link WeatherWindType }
     * 
     * 
     */
    public List<WeatherWindType> getWind() {
        if (wind == null) {
            wind = new ArrayList<WeatherWindType>();
        }
        return this.wind;
    }

    /**
     * Gets the value of the extendedConditions property.
     * 
     * @return
     *     possible object is
     *     {@link ExtConditionsType }
     *     
     */
    public ExtConditionsType getExtendedConditions() {
        return extendedConditions;
    }

    /**
     * Sets the value of the extendedConditions property.
     * 
     * @param value
     *     allowed object is
     *     {@link ExtConditionsType }
     *     
     */
    public void setExtendedConditions(ExtConditionsType value) {
        this.extendedConditions = value;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the humidity property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getHumidity() {
        if (humidity == null) {
            return "";
        } else {
            return humidity;
        }
    }

    /**
     * Sets the value of the humidity property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setHumidity(String value) {
        this.humidity = value;
    }

    /**
     * Gets the value of the windDirection property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getWindDirection() {
        if (windDirection == null) {
            return "";
        } else {
            return windDirection;
        }
    }

    /**
     * Sets the value of the windDirection property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setWindDirection(String value) {
        this.windDirection = value;
    }

    /**
     * Gets the value of the precType property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getPrecType() {
        if (precType == null) {
            return "";
        } else {
            return precType;
        }
    }

    /**
     * Sets the value of the precType property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setPrecType(String value) {
        this.precType = value;
    }

}
